#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void HeapTest()
{
	HP hp;
	HPInit(hp);

	HPDataType arr[6] = { 16, 10, 20, 30, 79, 5 };
	for (int i = 0; i < 6; i++)
	{
		HPPshu(hp, arr[i]);
	}

	while (!HPEmpty(hp))
	{
		cout << HPGetTop(hp) << " ";
		HPPop(hp);
	}
	cout << endl;
	
}

int main()
{
	HeapTest();
	return 0;
}